#pragma once
#include <opencv2/opencv.hpp>
class CMMap
{
public:
	CMMap();
	~CMMap();
	IplImage * m_BackImg;
	IplImage * m_SandImg[7];
	int m_map[15][16];
	int m_path[15][16];
	CvPoint m_Startb;
	CvPoint m_Endb;
	void LoadImg();
	void ReadMapTxt();
	void CreateBackImg();
	int GetDirectory(int posx, int posy);
	void ReleaseMap();
	void InitMap();
};

